<?php
namespace Adminx\Model;
use Think\Model;

class ShouzhiModel extends Model {

    protected $_validate = array (//字段验证
    	array('title','require','请输入事由', 1),
    	array('actionDate','require','请输入日期', 1),
    	array('money','require','请输入金额', 1),
    );	

    protected $_auto = array ( //自动完成
		array('createTime','time',Model::MODEL_INSERT,'function'),		
		array('updateTime','time',Model::MODEL_BOTH,'function'),
		array('actionDate','strtotime',Model::MODEL_BOTH,'function'),
	);
}
?>